<?php if (!$ajax):?>
<div id="user_karma">
	<div style="margin-right: 15px; float: left; font-size: 14pt; margin-top: 10px;">
		<acronym title="иными словами &mdash; рейтинг">Карма</acronym> &#8594;
	</div> 

	<div id="karma_value" style="margin-right: 50px;">
<?php endif; ?>
	
		<?php if ($voted || !is_registered() ): ?>
			<span class="cant">&#8593;</span>
		<?php else: ?>
			<span class="good" onclick="change_karma(<?= $user_id ?>, 1)">&#8593;<?=$voted?></span>
		<?php endif; ?>

		<?php if ($karma >= 0): ?>
			<span class="number_good"><?= $karma ?></span>
		<?php else: ?>
			<span class="number_bad"><?= $karma ?></span>
		<?php endif; ?>

		<?php if ($voted || !is_registered() ): ?>
			<span class="cant">&#8595;</span><br />
		<?php else: ?>		
			<span class="bad" onclick="change_karma(<?= $user_id ?>, 2)">&#8595;</span><br />
		<?php endif; ?>		

		<small>
			Проголосовало:<?= $votes ?><br />
		</small>

<?php if (!$ajax):?>	
	</div>	
</div>
<?php endif; ?>
